package com.fzshang.commen.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

/**
 * <p>
 * 商家门头照
 * </p>
 *
 * @author 冯政尚
 * @since 2020-02-24
 */
@ToString
@ApiModel(value="UserImage对象", description="商家门头照")
public class UserImage extends Model<UserImage> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "路径")
    @TableField("url")
    private String url;

    @ApiModelProperty(value = "user_id")
    @TableField("user_id")
    private Long userId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserImage{" +
            "id=" + id +
            ", url=" + url +
            ", userId=" + userId +
        "}";
    }
}
